package com.itheima.factory;

import com.itheima.controller.BaseStudentController;
import com.itheima.controller.OtherStudentController;
import com.itheima.controller.StudentController;
import com.itheima.dao.BaseStudentDao;
import com.itheima.dao.OtherStudentDao;
import com.itheima.dao.StudentDao;

import javax.print.attribute.standard.MediaSize;

/*
学生工厂
生产学生相关类的对象
 */
public class StudentFactory {


    //生产学生Dao 对象
    public static BaseStudentDao getStudentDao(){
        // return new StudentDao();
       return new OtherStudentDao();
    }

    // 生产学生Controller 对象
    public static BaseStudentController getStudentController(){
//        return new OtherStudentController();
        return new StudentController();
    }
}
